package com.rulin.asp.sso.mapper;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.rulin.asp.sso.entity.User;

@Repository
public interface UserMapper {
	int deleteByPrimaryKey(String id);

	int insert(User record);

	int insertSelective(User record);

	User selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(User record);

	int updateByPrimaryKey(User record);

	User selectByUserName(String userName);

	List<User> selectAllTeachers();

	User selectByUserAccount(String userAccount);
	
	List<User> selectAllUsers();//获取所有教师和管理员账号
}